import { IsString, IsOptional, IsNumber, IsObject } from 'class-validator';

export class SendMessageDto {
  @IsString()
  content: string;

  @IsString()
  @IsOptional()
  type?: string = 'text';

  @IsNumber()
  @IsOptional()
  replyToId?: number;

  @IsObject()
  @IsOptional()
  fileData?: any;
}
